package workflow;

import java.util.Map;

import state.OrderState;

public class MainController {
	public void Controller(WorkContext context){
		int flag = context.getWorkFalg();
		if(flag==0){
			//StartOrder
			OrderState os = new OrderState();
			os.start(context);
		}
		
		if(flag==1){
		   //finshtask
			
		}
	}
	
	private void ReadNowFlow(Map map){
		
		
	}
	
	private void ReadNextFlow(Map map){
		
		
	}
	
	private void CreateTast(){
		
		
	}
	
	private void DoTast(){
			
		
	}
	
	
}
